    //获取元素
	function $(id){
	    return typeof id==='string'?document.getElementById(id):id;
    }
	//封装getElementsByClassName
	function getByClass(oParent,sClass){
		var aEle=oParent.getElementsByTagName('*');	//*抓取所有元素
		var result=[];
		for(var i=0;i<aEle.length;i++){
			var arr=aEle[i].className.split(' ');
			for(var j=0;j<arr.length;j++){
				if(arr[j]==sClass){
					result.push(aEle[i]);
					break;
				}
			}
		}
		return result;
	}
	//可视区高
    function vieH(){
	    return document.documentElement.clientHeight;
    }
    //可视区宽
    function vieW(){
	    return document.documentElement.clientWidth;
    }
	//自动居中
	function autoCenter( el ){
		var elW = el.offsetWidth;
		var elH = el.offsetHeight;
		el.style.left = (vieW()-elW)/2 + 'px';
		el.style.top = (vieH()-elH)/2 + 'px';
	}
	//全屏滚动
	var oSection=$('section');
	var oContents=getByClass(oSection,'content');
	var oNumber=$('number');
	var oNumLis=oNumber.getElementsByTagName('li');
    //alert(oDetail.length);
	var iNow=0;
	var oIndex=0;
	//内容高度自动
	window.onresize=heightAuto;

	function sectionAuto(){
		oSection.style.height=vieH()+'px';
        for(var i=0;i<oContents.length;i++){
			oContents[i].style.height=vieH()+'px';
		}
        oSection.style.top=-oIndex*vieH()+'px';
	} 
	sectionAuto();
	function heightAuto(){
	    sectionAuto();
		liAuto(oLisBg);
		liAuto(oNewLisBg);
		autoCenter(oRadius);
		oVideoAuto();
		//var arr=[];
		//for(var i=0;i<oContents.length;i++){
		//	var oDetail=getByClass(oContents[i],'detail');
		//	arr.push(oDetail);
		//}
		////alert(arr.length);
		//for(var i in arr){
		//	if(vieH()>600){
		//		arr[i].className='detail';
		//	}
		//	else if(vieH()<600){
		//		arr[i].className='detail scale';
		//	}
		//}
	}
	//点击滚动全屏
	for(var i=0;i<oNumLis.length;i++){
	    oNumLis[i].index=i;
		oNumLis[i].onclick=function(){
		    iNow=this.index;
			oIndex=this.index;
			tab();
		}
	}
	function tab(){
	    for(var j=0;j<oNumLis.length;j++){
			oNumLis[j].className='';	
			oContents[j].className='content content1';
		}
		oNumLis[iNow].className='on';		
		setTimeout(function(){
			oSection.style.top=-iNow*vieH()+'px';
		},150);
		setTimeout(function(){
		    oContents[iNow].className='content content2';
		},600);
	}
	var oNext=function(){
		iNow++;
	    if(iNow==oNumLis.length){
			iNow=0;			
		}
		oIndex=iNow;
		tab();
	}
	var pre=function(){
	    if(iNow!=0){
	        iNow--;
			oIndex=iNow;
		}
		tab();
	}

	//鼠标滚轮
	var timer=null;
	addMouseWheel(oSection,function(down){
	    if(down){
			downTo();
		}
		else{
			upTo();
		}
	});
	function upTo(){
	    clearTimeout(timer);
		timer=setTimeout(pre,500);	    
	}
	function downTo(){
	    clearTimeout(timer);
		timer=setTimeout(oNext,500);		
	}
	//键盘事件
	var oKeyCode=$('keycode');
	document.onkeydown=function(ev){
	    var oEvt=ev||event;
		if(oEvt.keyCode==38){
		    upTo();
			oKeyCode.style.backgroundPosition='-121px 0';
		}
		else if(oEvt.keyCode==40){
		    downTo();
			oKeyCode.style.backgroundPosition='-191px 0';
		}
	}
	document.onkeyup=function(){
	    oKeyCode.style.backgroundPosition='-1px 0';
	}
	//封装鼠标滚轮事件
	function addMouseWheel(obj, fn){
	    function fnWheel(ev){
		    var oEvent=ev||event;
		    var down=false;
		    if(oEvent.wheelDelta){
			    down=oEvent.wheelDelta<0?true:false;
		    }
		    else{
			    down=oEvent.detail<0?false:true;
		    }
		    fn(down);
		    oEvent.preventDefault && oEvent.preventDefault();
		    return false;
	    }
	    if(navigator.userAgent.toLowerCase().indexOf('firefox')!=-1){
		    obj.addEventListener('DOMMouseScroll', fnWheel, false);
	    }
	    else{
		    obj.onmousewheel=fnWheel;
	    }
    }
	//创建li
	var oImg=['../uc/img/man01.jpg','../uc/img/man02.jpg','../uc/img/man03.jpg','../uc/img/man04.jpg','../uc/img/man05.jpg','../uc/img/man06.jpg','../uc/img/man07.jpg','../uc/img/man08.jpg','../uc/img/man09.jpg','../uc/img/man10.jpg','../uc/img/man11.jpg','../uc/img/man12.jpg','../uc/img/man13.jpg','../uc/img/man14.jpg','../uc/img/man15.jpg','../uc/img/man16.jpg','../uc/img/man17.jpg','../uc/img/man18.jpg','../uc/img/man19.jpg','../uc/img/man20.jpg','../uc/img/man21.jpg'];
	var oListBg=$('listbg');
	var oPage4=$('page4');
	for(var i=0;i<oImg.length;i++){
         var oLi=document.createElement('li');
		 oLi.style.backgroundImage='url('+oImg[i]+')';
		 oListBg.appendChild(oLi);
	}
	//li背景宽高自动
	var oLisBg=oListBg.children;	
	function liAuto(obj){
	    for(var i=0;i<obj.length;i++){
		    obj[i].style.width=vieW()/7+'px';
		    obj[i].style.height=vieH()/3+'px';    
	    }
	}
	liAuto(oLisBg);
	var oNewListBg=oListBg.cloneNode(true);
	oNewListBg.removeAttribute('id');
    oPage4.appendChild(oNewListBg);
	var oNewLisBg=oNewListBg.children;
	//alert(oNewLisBg.length);
	liAuto(oNewLisBg);
	//扫码下载
	var oBtnTc=$('btn_twocode');
	var oTc=$('twocode');
	var oBtnTc1=$('btn_twocode1');
	var oTc1=$('twocode1');
	function fTwocode(obj,a){
		obj.onmouseover=function(){
			a.style.display='block';
		}
		obj.onmouseout=function(){
			a.style.display='none';
		}
	}
	fTwocode(oBtnTc,oTc);
	fTwocode(oBtnTc1,oTc1);
	//背景视频
	var oVideoPlay=$('video_player');
	function oVideoAuto(){
		var oVideoPlayW=vieH()*1.77777;
		var oVideoPlayH=vieW()/1.77777;
		var rad=vieW()/vieH();
		var oLeft=(oVideoPlayW-vieW())/2;
		var oTop=(oVideoPlayH-vieH())/2;
		//alert(oTop);
		if(rad>1.777){
			oVideoPlay.style.width=vieW()+'px';
			oVideoPlay.style.height=oVideoPlayH+'px';
			oVideoPlay.style.top=-oTop+'px';
			oVideoPlay.style.left='0';
		}
		else{
			oVideoPlay.style.width=oVideoPlayW+'px';
			oVideoPlay.style.height=vieH()+'px';
			oVideoPlay.style.top='0';
			oVideoPlay.style.left=-oLeft+'px';
		}

	}
	oVideoAuto();
	var oVideo_play=$('video_player');
	var oBtnPlay=$('btnplay');
	var oPoster=$('poster');
	function ani_play(){
		setInterval(function(){
			if(oIndex==2){
				oVideo_play.play();
				oBtnPlay.style.display='none';
				oVideo_play.addEventListener('ended',function(){
					oPoster.style.opacity='1';
					oBtnPlay.style.display='block';
					oVideo_play.currentTime='0';
				},false);
			}
			else{
				oVideo_play.currentTime='0';
				oPoster.style.opacity='0';
			}
		},1000);

	}
	ani_play();
	oPoster.onclick=function(){
		ani_play();
	}
	//视频切换
	var oTab=$('tab0');
	var aTabLi=oTab.getElementsByTagName('li');
	var oListVideo=$('list_video');
	var aListVideoLi=oListVideo.getElementsByTagName('li');
	var oTab1=$('tab1');
	var aTabLi1=oTab1.getElementsByTagName('li');
	var oListVideo1=$('list_video1');
	var aListVideoLi1=oListVideo1.getElementsByTagName('li');
	var oUcMask=$('ucmask');
	var oClose_video=$('radius_close');
	var oRadius=$('radius_box');
	var oMv=$('mv');
	//alert(aListVideoLi.length);
    function videoTab(oli,obj,ovideo,avideoli){
		for(var i=0;i<oli.length;i++){
			oli[i].index=i;
			oli[i].onclick=function(){
				obj.className='tab'+this.index;
				ovideo.style.marginLeft=-this.index*avideoli[this.index].offsetWidth+'px';
			}
			avideoli[i].onclick=function(){
				oPlayVideo();
			}
		}
	}
	//点击弹出视频并播放
	function oPlayVideo(){
		oUcMask.style.height=vieH()+'px';
		oUcMask.style.width=vieW()+'px';
		oRadius.style.display='block';
		autoCenter(oRadius);
	}
	oMv.onclick=function(){
		oPlayVideo();
	}
	//调用函数videoTab
	videoTab(aTabLi,oTab,oListVideo,aListVideoLi);
	videoTab(aTabLi1,oTab1,oListVideo1,aListVideoLi1);
    //点击X号 关闭视频
	oClose_video.onclick=function(){
		oUcMask.style.height='0px';
		oUcMask.style.width='0px';
        oRadius.style.display='none';
	}
	//鼠标移动背景
	function move(obj,mobj){
		var middleX = obj.clientWidth / 2;
		var middleY = obj.clientHeight / 2;
		var flagX = 0,
			flagY = 0,
			screenX, screenY,
			positionX, positionY;
		screenX = event.screenX;
		screenY = event.screenY;
		var valueX = screenX - middleX,
			valueY = screenY - middleY;
		if( valueX < 0){
			flagX = 1;
		}
		if( valueY < 0){
			flagY = 1;
		}
		positionX = Math.pow(flagX == 0 ? valueX : -valueX, 1/2.5);
		positionY = Math.pow(flagY == 0 ? valueY : -valueY, 1/2.5);
		if(flagX == 0){
			positionX = -positionX;
		}
		if(flagY == 0){
			positionY = -positionY;
		}
		mobj.style.transition = 'none';
		mobj.style.webkitTransform = 'translate3d('+positionX+'px,'+positionY+'px,0)';
		flagX = 0;
		flagY = 0;
	}
	var oMobile=$('mobile');
	var oTriangle=$('triangle');
	var oTatter=$('tatter');
	var oPage4=$('page4');

	if(oMobile.addEventListener){
		oMobile.addEventListener('mousemove',function(){move(oMobile,oTriangle)},false);
		oPage4.addEventListener('mousemove',function(){move(oPage4,oTatter)},false);
	}else{
		oMobile.attachEvent('mousemove',function(){move(oMobile,oTriangle)});
		oPage4.attachEvent('mousemove',function(){move(oPage4,oTatter)});
	}
	//懂我态度
//	var oManList=$('manlist');
//	var aManLi=oManList.getElementsByTagName('li');
//	var oHoverShow=getByClass(oManList,'hover_show');
//	//alert(aManLi.length);
//	for(var i=0;i<aManLi.length;i++){
//		aManLi[i].index=i;
//	    aManLi[i].onmouseover=function(){
//			for(var i=0;i<aManLi.length;i++){
//			    oHoverShow[i].style.opacity='0';
//			}
//		    oHoverShow[this.index].style.opacity='1';
//		}		
//	}